using System;
using System.Collections.Generic;
using UnityEngine;

public class tk2dIndex : ScriptableObject
{
	public tk2dSpriteCollectionIndex[] GetSpriteCollectionIndex()
	{
		this.spriteCollectionIndex.RemoveAll((tk2dSpriteCollectionIndex item) => item == null);
		return this.spriteCollectionIndex.ToArray();
	}

	public void AddSpriteCollectionData(tk2dSpriteCollectionData sc)
	{
	}

	private void PruneGenericList(ref List<tk2dGenericIndexItem> list)
	{
	}

	public tk2dGenericIndexItem[] GetSpriteAnimations()
	{
		this.PruneGenericList(ref this.spriteAnimationIndex);
		return this.spriteAnimationIndex.ToArray();
	}

	public void AddSpriteAnimation(tk2dSpriteAnimation anim)
	{
	}

	public tk2dGenericIndexItem[] GetFonts()
	{
		this.PruneGenericList(ref this.fontIndex);
		return this.fontIndex.ToArray();
	}

	public void AddOrUpdateFont(tk2dFont font)
	{
	}

	public int version;

	public static int CURRENT_VERSION = 4;

	[SerializeField]
	private List<tk2dGenericIndexItem> spriteAnimationIndex = new List<tk2dGenericIndexItem>();

	[SerializeField]
	private List<tk2dGenericIndexItem> fontIndex = new List<tk2dGenericIndexItem>();

	[SerializeField]
	private List<tk2dSpriteCollectionIndex> spriteCollectionIndex = new List<tk2dSpriteCollectionIndex>();
}
